package com.icss.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.icss.dao.ItemDao;
import com.icss.model.Item;
import com.icss.model.ItemCategory;
import com.icss.service.ItemService;
@Service
public class ItemServiceImpl implements ItemService{
	@Autowired
	ItemDao itemDao;
	@Override
	public boolean add(Item item) {
		
		return itemDao.add(item)>0?true:false;
	}
	@Override
	public List<ItemCategory> findAllCate() {
		
		return itemDao.findAllCate();
	}
	@Override
	public List<Item> findAll() {
		return itemDao.findAll();
	}
	@Override
	public List<Item> findByPage(Map<String, Integer>map) {
		return itemDao.findByPage(map);
	}

}
